<?php
require_once '../model/model.php';
use admin\Model\model as m;

$m = new m();

if(!empty($_GET['id'])){
	$id = $_GET['id'];
	$s = $m->user_seach('user_id',$id);
	if($s['rows'] == null){
		exit(json_encode(array('status' => 0,'msg' => '员工工号有误！')));
	}
	exit(json_encode($s));
}else{
	exit(json_encode(array('status' => 0,'msg' => '员工工号有误！')));
}